package cn.afterturn.gen.modular.code.service.impl;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import cn.afterturn.gen.modular.code.dao.AppDao;
import cn.afterturn.gen.modular.code.model.AppModel;
import cn.afterturn.gen.modular.code.service.IAppService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
/**
 * Service
 *
 * @author haha
 * @Date 2018-09-27 10:30
 */
@Service
public class AppServiceImpl implements IAppService {

    @Autowired
    private AppDao appDao;

    @Override
    public Integer insert(AppModel entity) {
        return appDao.insert(entity);
    }

    @Override
    public Integer deleteById(Integer id) {
        return appDao.deleteById(id);
    }

    @Override
    public Integer updateById(AppModel entity) {
        return appDao.updateById(entity);
    }

    @Override
    public AppModel selectById(Integer id) {
        return appDao.selectById(id);
    }

    @Override
    public AppModel selectOne(AppModel entity) {
        return appDao.selectOne(entity);
    }

    @Override
    public Integer selectCount(AppModel model) {
        return appDao.selectCount(model);
    }

    @Override
    public List<AppModel> selectList(AppModel model) {
        return appDao.selectList(model);
    }

    @Override
    public List<AppModel> selectPage(Pagination pagination, AppModel model, Wrapper<AppModel> wrapper) {
        return appDao.selectPage(pagination,model,wrapper);
    }

}
